﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Query.aspx.cs" Inherits="Admin.Zonghe.Query" %>

<%@ Register Src="~/UserControls/PageControl.ascx" TagName="PageControl" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>房产信息查询</title>
    <link href="/Admin/Css/rightbar.css?FileVersion=<%=FileVersion %>" rel="stylesheet"
        type="text/css" />
    <script src="/Admin/Scripts/jquery-1.4.1.min.js?FileVersion=<%=FileVersion %>" type="text/javascript"></script>
    <script type="text/javascript">
        //将页面内要打印的内容加入中间<!--startprint1-->打印区域<!--endprint1-->
        //打印按纽 onclick=preview(1)
        function preview(oper) {
            if (oper < 10) {
                bdhtml = window.document.body.innerHTML; //获取当前页的html代码
                sprnstr = "<!--startprint" + oper + "-->"; //设置打印开始区域
                eprnstr = "<!--endprint" + oper + "-->"; //设置打印结束区域
                prnhtml = bdhtml.substring(bdhtml.indexOf(sprnstr) + 18); //从开始代码向后取html
                prnhtml = prnhtml.substring(0, prnhtml.indexOf(eprnstr)); //从结束代码向前取html
                window.document.body.innerHTML = prnhtml;
                $("div:[name='printhidden']").css("display", "none");
                $("table:[name='printhidden']").css("display", "none");
                //                $("th").css("border-bottom", "1px solid #DDDDDD");
                //                $("th").css("border-top", "1px solid #DDDDDD");
                window.print();
                window.document.body.innerHTML = bdhtml;
                $("div:[name='printhidden']").css("display", "");
                $("table:[name='printhidden']").css("display", "");
                //                $("table:[name='printhidden'] th").css("border-bottom", "");
                //                $("table:[name='printhidden'] th").css("border-top", "");
            }
            else {
                window.print();
            }
        }  
    </script>
</head>
<body id="wallet">
    <!--startprint1-->
    <div class="warp">
        <div class="topnav" style="width: 880px;" name="printhidden">
            <ul>
                <li><a href="javascript:void(0);" style="cursor: default;" class="on_nav"><span>房产信息查询</span></a></li>
            </ul>
        </div>
        <div class="tab mt15" style="width: 880px;" name="printhidden">
            <ul>
                <li class="in_on"><strong>房产信息查询</strong></li>
            </ul>
        </div>
        <div class="cont" style="padding: 0; width: 878px;">
            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="stb01" name="printhidden">
                <tr>
                    <td style="padding-top: 0; height: 40px; width: 110px;" valign="middle" align="right"
                        bgcolor="#F3FBFE">
                        您的查询条件：
                    </td>
                    <td style="padding-top: 0; padding-left: 5px; height: 40px; color: Red" valign="middle"
                        align="left" bgcolor="#F3FBFE">
                        <%=queryConditionDesc %>
                    </td>
                    <td style="padding-top: 0; padding-right: 20px; height: 40px;" valign="middle" align="right"
                        bgcolor="#F3FBFE" name="printhidden">
                        <div class="pl10">
                            <input name="imageField2" id="imageField2" type="submit" value="打 印" onclick="preview(1);return false;" /></div>
                    </td>
                </tr>
            </table>
            <table width="878px" border="0" cellspacing="0" cellpadding="0" class="maintb" style="border-top: 0;"
                id="tbDataList">
                <%=outputContent %>
            </table>
        </div>
        <div style="text-align: right;" style="width: 880px;">
            <form runat="server" id="pageForm24">
            <uc1:PageControl ID="pageCountrol" runat="server" />
            </form>
        </div>
        <div class="btudiv" style="padding-top: 15px; float: none; height: 22px; width: 93%;"
            name="printhidden">
            <ul style="width: 170px;">
                <li><a id="a1" class=" btuyellow_arrow" href="<%= pageUrl%>&action=download&ckOutputFields=<%=outputFields %>"
                    target="_blank"><span>下载报表</span></a></li></ul>
        </div>
    </div>
    <!--endprint1-->
    <script type="text/javascript">
        //隔行变色
        jQuery(function ($) {
            $("#tbDataList tr:even").css("background-color", "#F9F9F9");
        });
        function DownExcel() {
            //onclick="return DownExcel()" href="javascript:void(0)"
            $("#searchForm").attr("action", "Balance.aspx?action=download");
            $("#searchForm").submit();
            $("#searchForm").attr("action", "Balance.aspx");
            return false;
        }
    </script>
</body>
</html>
